import request from "@/request";

export const getList = (params) =>
  request({
    url: "/admin-api/home/base-carousel/page",
    method: "get",
    params,
  });

export const add = (data) =>
  request({
    url: "/admin-api/home/base-carousel/create",
    method: "post",
    data,
  });

export const remove = (id) =>
  request({
    url: "/admin-api/home/base-carousel/delete",
    method: "delete",
    params: {
      id,
    },
  });

export const getDesignList = (params) =>
  request({
    url: "/admin-api/home/base-bathroom-design/page",
    method: "get",
    params,
  });

export const designAdd = (data) =>
  request({
    url: "/admin-api/home/base-bathroom-design/create",
    method: "post",
    data,
  });

export const designRemove = (id) =>
  request({
    url: "/admin-api/home/base-bathroom-design/delete",
    method: "delete",
    params: {
      id,
    },
  });

export const getRecomList = (params) =>
  request({
    url: "/admin-api/home/design-recommendation-title/page",
    method: "get",
    params,
  });

export const recomAdd = (data) =>
  request({
    url: "/admin-api/home/design-recommendation-title/create",
    method: "post",
    data,
  });

export const recomRemove = (id) =>
  request({
    url: "/admin-api/home/design-recommendation-title/delete",
    method: "delete",
    params: {
      id,
    },
  });

export const recomEdit = (data) =>
  request({
    url: "/admin-api/home/design-recommendation-title/update",
    method: "put",
    data,
  });
